Cosimo Cecchi [Tue, 27 Sep 2011 16:55:05 +0000 (12:55 -0400)]
notebook: allow using different padding values for the active tab state
The code before was basically adding and removing the same padding value
in two different places during the allocation cycle.
Instead, what we want to do is to offset the inactive tab allocation by
the difference with the active tab padding, to ensure the tab content is
always drawn centered and in the right position.
https://bugzilla.gnome.org/show_bug.cgi?id=659777
Cosimo Cecchi [Tue, 27 Sep 2011 16:54:22 +0000 (12:54 -0400)]
notebook: use the current state to get the padding values
We want to enable the use of different padding values between active and
inactive tabs, so that the two are completely separated (but limited by
the active tab size).
This way themes can decide how bigger the active tab is drawn compared
to the normal one just specifying a different padding value from the
CSS, like this:
.notebook tab {
padding: 2;
}
.notebook tab:active {
padding: 4;
}
As a first step, fetch the padding values with the right state flags
from GtkStyleContext.
https://bugzilla.gnome.org/show_bug.cgi?id=659777
YunQiang Su [Tue, 27 Sep 2011 17:34:08 +0000 (01:34 +0800)]
update zh_CN translation
Cosimo Cecchi [Tue, 27 Sep 2011 16:51:54 +0000 (12:51 -0400)]
mountoperation: fix the build
2d3db3421fd8067dd9c59a0727da239936187cc5 has a typo which broke the
build on master.
Piotr Drąg [Tue, 27 Sep 2011 14:04:53 +0000 (16:04 +0200)]
Updated POTFILES.skip
Michael Natterer [Tue, 27 Sep 2011 13:37:28 +0000 (15:37 +0200)]
Bug 659406 - Abstract what triggers a context menu
Add gdk_event_triggers_context_menu(), using the new modifier
abstraction API. Remove _gtk_button_event_triggers_context_menu()
and port all callers.
Michael Natterer [Tue, 27 Sep 2011 12:21:09 +0000 (14:21 +0200)]
GtkSettings: fix compile warnings on != X11
Michael Natterer [Tue, 27 Sep 2011 10:06:10 +0000 (12:06 +0200)]
gtk: remove the private GTK_EXTEND/MODIFY_SELECTION_MOD_MASK
and use the new public modifier abstraction API instead.
Michael Natterer [Tue, 27 Sep 2011 09:34:19 +0000 (11:34 +0200)]
gtk: remove the private GTK_NO_TEXT_INPUT_MOD_MASK
and use the new public modifier abstraction API.
Michael Natterer [Tue, 27 Sep 2011 07:50:34 +0000 (09:50 +0200)]
Bug 659602 - Provide an abstraction for the platform's use of modifier keys
Add enum GdkModifierIntent which identifies use cases for modifier masks
and GdkKeyMap::get_modifier_mask(). Add a default implementation which returns
what is currently hardcoded all over GTK+, and an implementation in the
quartz backend. Also add gtk_widget_get_modifier_mask() which simplifies
things by doing widget->display->keymap->get_modifier_mask().
Benjamin Otte [Tue, 27 Sep 2011 03:36:03 +0000 (05:36 +0200)]
tests: Use a grid in testnotebookdnd instead of a table
Benjamin Otte [Tue, 27 Sep 2011 03:32:49 +0000 (05:32 +0200)]
tests: Use a grid in testorientable instead of a table
Benjamin Otte [Tue, 27 Sep 2011 03:29:04 +0000 (05:29 +0200)]
tests: Use a box instead of a table in testselection
Benjamin Otte [Tue, 27 Sep 2011 02:29:55 +0000 (04:29 +0200)]
toolbar: Fix widget path creation code
- Ensure arrow button is always included
- Invalidate list when direction changes
Benjamin Otte [Tue, 27 Sep 2011 02:29:11 +0000 (04:29 +0200)]
container: Warn if an invalid widget path is created
This makes it quite a bit easier to debug things.
Benjamin Otte [Tue, 27 Sep 2011 02:02:52 +0000 (04:02 +0200)]
tests: Convert testtoolbar to use a box instead of a table
Benjamin Otte [Tue, 27 Sep 2011 00:53:31 +0000 (02:53 +0200)]
tests: Convert testtreeview from GtkTable to GtkBox
Benjamin Otte [Tue, 27 Sep 2011 00:49:15 +0000 (02:49 +0200)]
tests: Make testwindows use GtkGrid
Benjamin Otte [Tue, 27 Sep 2011 00:38:05 +0000 (02:38 +0200)]
tests: Make testwindows dialog even more beautiful
Benjamin Otte [Tue, 27 Sep 2011 00:37:03 +0000 (02:37 +0200)]
tests: Make editing window look more beautiful
Мирослав Николић [Tue, 27 Sep 2011 00:24:51 +0000 (02:24 +0200)]
Updated Serbian translation
Matthias Clasen [Mon, 26 Sep 2011 22:03:37 +0000 (18:03 -0400)]
Put master on the 3.3 track
Benjamin Otte [Mon, 26 Sep 2011 20:33:40 +0000 (22:33 +0200)]
reftests: Add a reftest checking background-color: transparent
Rodolfo Ribeiro Gomes [Mon, 26 Sep 2011 18:46:00 +0000 (15:46 -0300)]
Fixed some strings in Brazilian Portuguese translation
Michael Natterer [Sun, 18 Sep 2011 22:32:52 +0000 (00:32 +0200)]
Bug 659406 - Abstract what triggers a context menu
Add _gtk_button_event_triggers_context_menu() and use it instead
of checking for event->button == 3, so context menus are invoked
correctly on the Mac.
Michael Natterer [Sat, 17 Sep 2011 18:05:33 +0000 (20:05 +0200)]
app: abstract which modifiers are used for extending and modifying selections
which are SHIFT and MOD2 on the Mac, and SHIFT and CONTROL otherwise.
Use the new define all over the place and rename variables and
members to not say "shift" or "control".
Michael Natterer [Sat, 17 Sep 2011 13:25:02 +0000 (15:25 +0200)]
gtk: use GTK_NO_TEXT_INPUT_MOD_MASK also in gtkfilechooserdefault.c
(cherry picked from commit
b057a311e76a90a120ca0e9597bedeb9fc89b0b2)
Michael Natterer [Fri, 16 Sep 2011 14:12:23 +0000 (16:12 +0200)]
gtk: allow to specify accelerators in a platform-independent way
Introduce <Primary> in accelerator strings, which resolves to
GDK_CONTROL_MASK on X11/Win23, and to GDK_META_MASK on quartz.
Also serialize CONTROL/META as <Primary> depending on the platform.
Michael Natterer [Fri, 16 Sep 2011 14:10:06 +0000 (16:10 +0200)]
gtk: fix entering of Option-foo symbols on the Mac
define GTK_NO_TEXT_INPUT_MOD_MASK in gtkprivate.h
and use it in the IM contexts, so Option-foo is no longer
filtered away.
Michael Natterer [Fri, 16 Sep 2011 13:56:29 +0000 (15:56 +0200)]
gtk: use GTK_DEFAULT_ACCEL_MOD_MASK instead of GDK_CONTROL_MASK in gtkstock.c
Michael Natterer [Fri, 16 Sep 2011 13:54:03 +0000 (15:54 +0200)]
quartz: resolve the modifier confusion on the Mac
- map Alt/Option to MOD1
- map Command to MOD2
- map MOD2 to the virtual Meta
- improve/fix (?) group handling in gdkkeys-quartz.c
Michael Natterer [Fri, 16 Sep 2011 13:51:33 +0000 (15:51 +0200)]
gtk: disable mnemonics in gtkrc.key.mac, they don't exist on the Mac
(cherry picked from commit
d83c86d42eda7063f7367057ad3afaf01e95c997)
Michael Natterer [Fri, 16 Sep 2011 13:39:23 +0000 (15:39 +0200)]
gtk: enable setting virtual modifiers in GtkCellRendererAccel
Call gdk_keymap_add_virtual_modifiers() on event->state,
so virtual modifiers get added at all.
(cherry picked from commit
be1eea612cb7beacffdc0b31e7158195004f5e2d)
Benjamin Otte [Mon, 26 Sep 2011 13:58:27 +0000 (15:58 +0200)]
cssprovider: Remove unused enums
Benjamin Otte [Mon, 26 Sep 2011 13:56:46 +0000 (15:56 +0200)]
styleproperty: Allow 'transparent' keyword for background-color
Benjamin Otte [Mon, 26 Sep 2011 13:53:48 +0000 (15:53 +0200)]
styleproperty: Default to transparent background-color
Benjamin Otte [Mon, 26 Sep 2011 13:48:53 +0000 (15:48 +0200)]
styleproperty: Use the long form to register background-color
We want to set a default value.
Carles Ferrando [Mon, 26 Sep 2011 12:22:19 +0000 (14:22 +0200)]
[l10n]Updated Catalan (Valencian) translation
Carles Ferrando [Mon, 26 Sep 2011 12:22:01 +0000 (14:22 +0200)]
[l10n]Updated Catalan (Valencian) translation
Petr Kovar [Mon, 26 Sep 2011 10:20:49 +0000 (12:20 +0200)]
Update Czech translation
Matthias Clasen [Mon, 26 Sep 2011 02:01:13 +0000 (22:01 -0400)]
Bump version
Matthias Clasen [Mon, 26 Sep 2011 02:00:20 +0000 (22:00 -0400)]
3.2.0
Matthias Clasen [Mon, 26 Sep 2011 01:13:33 +0000 (21:13 -0400)]
Updates
Matthias Clasen [Mon, 26 Sep 2011 00:58:59 +0000 (20:58 -0400)]
Documentation fixes
Mostly making sure that return values and varargs don't loose
their docs.
Michael Natterer [Sun, 25 Sep 2011 22:46:16 +0000 (00:46 +0200)]
GtkBox: make get_path_for_child() work if there are internal children
Use foreach() instead of forall() to find the child's siblings
because internal children of subclasses have no sibling relation
to the box' children. Also deal with the subclass failing to
implement get_path_for_child(). This caused an infinite widget
path invalidation loop of sorts with GimpMessageBox, which is a
vertical box with a decorative icon to the left.
Petr Kovar [Sun, 25 Sep 2011 21:57:51 +0000 (23:57 +0200)]
Update Czech translation
Pau Iranzo [Sun, 25 Sep 2011 21:39:17 +0000 (23:39 +0200)]
[l10n]Updated Catalan translation
Gil Forcada [Sun, 25 Sep 2011 21:11:05 +0000 (23:11 +0200)]
[l10n]Updated Catalan translation
OKANO Takayoshi [Sun, 25 Sep 2011 16:23:22 +0000 (01:23 +0900)]
Updated Japanese translation
Michael Natterer [Sun, 25 Sep 2011 15:43:45 +0000 (17:43 +0200)]
GtkTreeViewColumn: fix x_offset returned by cell_get_position()
Fixes #640741 - gtk_tree_view_column_get_cell_position() seems to be broken
It is supposed to return the offset within the column, but returned
the offset within the tree, changed by allocation.x of the column's
button (which I don't really unserstand and was clearly not working).
Michael Natterer [Sun, 25 Sep 2011 12:50:31 +0000 (14:50 +0200)]
GtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()
Return FALSE again if the passed in cell is not part of the column.
It was always returning TRUE since GtkCellArea was introduced.
Alexander Shopov [Sun, 25 Sep 2011 11:53:52 +0000 (14:53 +0300)]
Updated Bulgarian translation
ipraveen [Sun, 25 Sep 2011 08:37:55 +0000 (14:07 +0530)]
Updated Telugu Translation
ipraveen [Sun, 25 Sep 2011 06:59:17 +0000 (12:29 +0530)]
Updated Telugu Translation
ipraveen [Sun, 25 Sep 2011 06:34:12 +0000 (12:04 +0530)]
Updated Telugu Translation
Kenneth Nielsen [Sat, 24 Sep 2011 20:19:37 +0000 (22:19 +0200)]
Updated Danish translation
Kenneth Nielsen [Sat, 24 Sep 2011 12:51:00 +0000 (14:51 +0200)]
Updated Danish translation
Matthias Clasen [Sat, 24 Sep 2011 02:18:44 +0000 (22:18 -0400)]
Add some missing entries to the docs
Matthias Clasen [Sat, 24 Sep 2011 01:06:23 +0000 (21:06 -0400)]
Updates
Aurimas Černius [Fri, 23 Sep 2011 21:32:27 +0000 (00:32 +0300)]
Updated properties Lithuanian translation
Aurimas Černius [Fri, 23 Sep 2011 21:29:50 +0000 (00:29 +0300)]
Updated Lithuanian translation
Matthias Clasen [Fri, 23 Sep 2011 20:25:33 +0000 (16:25 -0400)]
Fix module blacklisting
The handling of the module lists is a bit confusing here. There is
a global list that is populated with initial modules from GTK_MODULES,
and then there is a second list that is suppposed to hold the modules
loaded from the gtk-modules xsetting, which we attach to the GtkSettings
object. The blacklisting caused us to put the wrong modules into the
second list, and mess up the module refcounts, eventually double-freeing
memory when the setting changes repeatedly.
https://bugzilla.gnome.org/show_bug.cgi?id=659966
Benjamin Otte [Fri, 23 Sep 2011 20:22:35 +0000 (22:22 +0200)]
textview: Fix comparison being the wrong way
Keynav failed when the position did _not_ change.
Alban Crequy [Thu, 22 Sep 2011 20:39:06 +0000 (16:39 -0400)]
gtktreeviewaccessible: do not trigger an assertion
The following assertion was triggered in model_row_inserted() because
iterate_thru_children() modifies the parameter tree_model before passing it to
traverse_cells().
Gtk-CRITICAL **: gtk_tree_path_compare: assertion `b->depth > 0' failed
The stack with the bug was:
#0 gtk_tree_path_compare at gtktreemodel.c
#1 traverse_cells at gtktreeviewaccessible.c
#2 model_row_inserted at gtktreeviewaccessible.c
This patch calls iterate_thru_children() with a copy of the path so that the
original is not modified.
Bastien Nocera [Thu, 22 Sep 2011 18:46:40 +0000 (19:46 +0100)]
GtkAssistant: Fix problems with gtk_widget_show_all()
gtk_widget_show_all() would have shown every single item inside
the GtkAssistant sidebar, as well as all the navigation buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=659826
Christian Persch [Thu, 22 Sep 2011 22:32:44 +0000 (00:32 +0200)]
Disable font fallback in the fontchooser preview
The preview is should show the selected font, not whatever
font contains glyphs for the preview text.
Benjamin Otte [Thu, 22 Sep 2011 19:35:25 +0000 (21:35 +0200)]
fontbutton: Properly display absolute sizes
Display them the same way as Pango does.
Benjamin Otte [Thu, 22 Sep 2011 19:27:22 +0000 (21:27 +0200)]
fontbutton: Properly update label after property changes
Previously, the font wasn't properly updated after some changes.
Benjamin Otte [Thu, 22 Sep 2011 19:21:59 +0000 (21:21 +0200)]
fontbutton: Display the same text as elsewhere
In particular, display names of families that don't have an installed
font.
Benjamin Otte [Thu, 22 Sep 2011 16:17:54 +0000 (18:17 +0200)]
fontchooser: Use fixed height mode for the font face list
Now that we enforce same height anyway, this just further speeds things
up.
Benjamin Otte [Thu, 22 Sep 2011 16:00:37 +0000 (18:00 +0200)]
fontchooser: Set a fixed size on the preview cell
This way, all rows have the same height. It has 3 advantages:
1) No actual computation is necessary to compute the size of the cell.
This speeds up the list tremendously (filling out the list goes from
25s to 3s).
2) Buggy fonts don't mess up the list anymore with their weird sizes.
Instead, they are clipped / empty space is added.
3) Buggy fonts look more buggy. So their use is hopefully discouraged.
Benjamin Otte [Thu, 22 Sep 2011 15:34:56 +0000 (17:34 +0200)]
fontchooser: Split out computing of the preview text attributes
Benjamin Otte [Wed, 21 Sep 2011 18:31:06 +0000 (20:31 +0200)]
fontchooser: Use absolute size for the preview text in the list
With absolute sizes, Pango is way better at getting the actual sizes of
the fonts to match up. It's a bit harder to compute a proper value for
this, whcih makes the code ugly, but as long as it works better...
Benjamin Otte [Wed, 21 Sep 2011 01:27:43 +0000 (03:27 +0200)]
fontchooser: Set cell data as text + attributes instead of markup
This is quite a bit uglier, but allows more freedom.
Benjamin Otte [Wed, 21 Sep 2011 03:49:43 +0000 (05:49 +0200)]
fontchooser: Reselect font when it's unfiltered
Benjamin Otte [Wed, 21 Sep 2011 03:44:22 +0000 (05:44 +0200)]
fontchooser: Only compare font descriptions when families match
This way, we can find fonts way quicker as we only need to create font
descriptions for fonts with matching families. Most importantly, we're
rather quick in the "the font doesn't exist" case.
Benjamin Otte [Wed, 21 Sep 2011 03:24:26 +0000 (05:24 +0200)]
fontchooser: Only create font descriptions on demand
pango_font_describe() is expensive, so try not to use it.
Benjamin Otte [Wed, 21 Sep 2011 00:51:08 +0000 (02:51 +0200)]
fontchooser: Make all setters go through merge_font_desc()
Don't special case cursor_changed anymore.
Benjamin Otte [Wed, 21 Sep 2011 00:40:26 +0000 (02:40 +0200)]
fontchooser: Update range marks properly
Range marks weren't updated previously when the font was set
programmatically. Also, setting the range marks could cause the font
size to change.
Benjamin Otte [Tue, 20 Sep 2011 23:04:00 +0000 (01:04 +0200)]
fontchooser: Reorganize code a bit
The main reason is so that we have a new function that we can use from
the cursor_changed_cb.
Benjamin Otte [Tue, 20 Sep 2011 22:31:26 +0000 (00:31 +0200)]
fontchooser: Don't store the current face and family anymore
They can be queried on-demand from the font list.
Benjamin Otte [Tue, 20 Sep 2011 22:23:07 +0000 (00:23 +0200)]
fontchooser: Take font description from model
... instead of taking face and constructing it from there.
Benjamin Otte [Tue, 20 Sep 2011 22:19:51 +0000 (00:19 +0200)]
fontchooser: Sanitize variable declarations
- no empty lines between variables
- no unnecessary casts
- use glib-style casts
- no spaces
Benjamin Otte [Tue, 20 Sep 2011 22:14:02 +0000 (00:14 +0200)]
fontchooser: Fix leak
the path variable is set, not filled in.
Benjamin Otte [Tue, 20 Sep 2011 22:07:21 +0000 (00:07 +0200)]
fontchooser: Store an iter to the current font
Note that we cannot use GtkTreeSelection for this, because when the font
list is filtered the current font may not be visible.
Morten Welinder [Tue, 20 Sep 2011 19:14:50 +0000 (21:14 +0200)]
cssprovider: Remove outdated docs
Benjamin Otte [Tue, 20 Sep 2011 15:07:44 +0000 (17:07 +0200)]
fontchooser: Store tree model member variables as GtkTreeModel
... and remove the now unnecessary treemodel casts everywhere.
Just code cleanup.
Benjamin Otte [Tue, 20 Sep 2011 15:06:18 +0000 (17:06 +0200)]
fontchooser: Rename populate_list() function
Name it gtk_font_chooser_widget_load_fonts(). Also, don't take any
arguments, they were the same everywhere and they're member variables of
the font chooser anyway.
Benjamin Otte [Tue, 20 Sep 2011 14:49:49 +0000 (16:49 +0200)]
fontchooser: Make changing the preview text fast
Instead of reloading the font list, we now just queue a redraw. This
works, because the preview text is added using a cell data func instead
of a custom column.
Benjamin Otte [Tue, 20 Sep 2011 14:32:15 +0000 (16:32 +0200)]
fontchooser: Use a cell_data_func for the font list
This way, we don't have to store the preview text in the list.
Benjamin Otte [Tue, 20 Sep 2011 01:37:11 +0000 (03:37 +0200)]
fontchooser: Don't scroll in the populate_list() function
Benjamin Otte [Tue, 20 Sep 2011 01:10:33 +0000 (03:10 +0200)]
fontchooser: Remove needless scroll calls
Previous functions take care of scrolling already.
Benjamin Otte [Tue, 20 Sep 2011 00:54:42 +0000 (02:54 +0200)]
fontchooser: Introduce gtk_font_chooser_find_font()
... which looks up the font in the list of fonts. This then can be used
to select an actual font upon changes.
Also fixes cases where the get_family() and get_face() functions would
return outdated data when set_font() had been called.
Benjamin Otte [Mon, 19 Sep 2011 23:17:29 +0000 (01:17 +0200)]
fontchooser: Rewrite size changes
They now go through gtk_font_chooser_widget_take_font_desc(). The end
goal is to make all changes go through this function, so that all
updates that are happening are easy to track.
Another change is that the code now merges the font description instead
of just using the new one. This avoids weird situations when people set
the font "Bold" for example, which has neither a size nor a font family.
Benjamin Otte [Mon, 19 Sep 2011 22:30:19 +0000 (00:30 +0200)]
fontchooser: Fix size computation
Benjamin Otte [Wed, 21 Sep 2011 02:21:42 +0000 (04:21 +0200)]
fontchooser: Fix gcc warnings
Changwoo Ryu [Thu, 22 Sep 2011 18:01:11 +0000 (03:01 +0900)]
Updated Korean translation
Daniel Nylander [Thu, 22 Sep 2011 14:37:26 +0000 (16:37 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:36:58 +0000 (16:36 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:36:25 +0000 (16:36 +0200)]
Updated Swedish translation